package com.ztomorrow.ying_cun_plus.constant.front;

public class CacheConstant {

    /**
     * 首页推荐书籍常量
     */
    public static String CAFFEINE_HOME_BOOK = "caffeineHomeBook";
    public static long CAFFEINE_HOME_BOOK_TTL = 4L;
    public static String REDIS_HOME_BOOK = "cache:home:book";
    public static long REDIS_HOME_BOOK_TTL = 8L;

    /**
     * 首页友情连接常量
     */
    public static String CAFFEINE_HOME_FRIEND_LINK = "caffeineFriendLink";
    public static long CAFFEINE_FRIEND_LINK_TTL = 5L;
    public static String REDIS_HOME_FRIEND_LINK= "cache:home:link";
    public static long REDIS_FRIEND_LINK_TTL = 8L;

    /**
     * 登录注册功能常量
     */
    public static String REDIS_VERIFY_CODE = "cache:verifyCode:";
    public static Long REDIS_VERIFY_CODE_TTL = 3L;

    /**
     * 三大榜单
     */
    public static String CAFFEINE_VISIT_RANK = "caffeineVisitRank";
    public static long CAFFEINE_VISIT_RANK_TTL = 3L;
    public static String CAFFEINE_NEWEST_RANK = "caffeineNewestRank";
    public static long CAFFEINE_NEWEST_RANK_TTL = 3L;
    public static String CAFFEINE_UPDATE_RANK = "caffeineUpdateRank";
    public static long CAFFEINE_UPDATE_RANK_TTL = 3L;

    public static String REDIS_VISIT_RANK = "cache:Rank:Visit";
    public static long REDIS_VISIT_RANK_TTL = 6L;
    public static String REDIS_NEWEST_RANK = "cache:Rank:Newest";
    public static long REDIS_NEWEST_RANK_TTL = 6L;
    public static String REDIS_UPDATE_RANK = "cache:Rank:Update";
    public static long REDIS_UPDATE_RANK_TTL = 6L;

    /**
     * 咨询常量
     */
    public static String CAFFEINE_LATEST_NEWS = "caffeineLatestNews";
    public static String REDIS_LATEST_NEWS = "cache:latest:news";
    public static long REDIS_LATEST_NEWS_TTL = 4L;

    /**
     * 作品方向
     */
    public static String CAFFEINE_WORK_DIRECTION = "caffeineWorkDirection";
    public static String REDIS_WORK_DIRECTION = "cache:work:direction:";
    public static long REDIS_WORK_DIRECTION_TTL = 7L;

    /**
     * 小说信息
     */
    public static String CAFFEINE_BOOK_INFO = "caffeineBookInfo";
    public static long CAFFEINE_BOOK_INFO_TTL = 6L;
    public static String REDIS_BOOK_INFO = "book:info:";
    public static long REDIS_BOOK_INFO_TTL = 4L;

    /**
     * 小说推荐列表
     */
    public static String CAFFEINE_REC_BOOKS = "caffeineRecBooks";
    public static String REDIS_REC_BOOKS = "cache:Rec:Books";
    public static long REDIS_REC_BOOKS_TTL = 7L;

    /**
     * 小说章节信息
     */
    public static String CAFFEINE_BOOK_CHAPTER = "caffeineBookChapter";
    public static String REDIS_BOOK_CHAPTER = "book:chapter:info:";
    public static long REDIS_BOOK_CHAPTER_TTL = 7L;

    /**
     * 小说章节内容
     */
    public static String CAFFEINE_BOOK_CONTENT = "caffeineBookContent";
    public static String REDIS_BOOK_CONTENT = "book:chapter:content:";
    public static long REDIS_BOOK_CONTENT_TTL = 3L;

    /**
     * 用户信息
     */
    public static String CAFFEINE_USER_INFO = "caffeineUserInfo";
    public static String REDIS_USER_INFO = "book:user:info:";
    public static long REDIS_USER_INFO_TTL = 10L;
}
